﻿namespace HiMap.Carto
{
    using System;
    using System.Runtime.InteropServices;
    using System.Text;

    internal class VC
    {
        [DllImport("KMGisLib")]
        public static extern void KWG_DATAROW_CLEAR(int datarow_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_DATAROW_DELETE(int datarow_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_DATAROW_GET_CELL(int datarow_ptr, int nfield, StringBuilder cell_string);
        [DllImport("KMGisLib")]
        public static extern bool KWG_DATAROW_SET_CELL(int datarow_ptr, int nfield, StringBuilder cell_string);
        [DllImport("KMGisLib")]
        public static extern int KWG_DISPLAYCONDITION_GET_ANGLE(int displaycondition_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_GET_CENTER(int displaycondition_ptr, ref double x, ref double y);
        [DllImport("KMGisLib")]
        public static extern int KWG_DISPLAYCONDITION_GET_COORDINATESYSTEM(int displaycondition_ptr);
        [DllImport("KMGisLib")]
        public static extern POINTD KWG_DISPLAYCONDITION_GET_DISPLAYPOINT(int displaycondition_ptr, POINTD pt, int projection_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_GET_ENVLOPE(int displaycondition_ptr, ref double minx, ref double miny, ref double maxx, ref double maxy);
        [DllImport("KMGisLib")]
        public static extern int KWG_DISPLAYCONDITION_GET_FRAME_HEIGHT(int displaycondition_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_GET_FRAME_METER(int displaycondition_ptr, ref double width, ref double height);
        [DllImport("KMGisLib")]
        public static extern int KWG_DISPLAYCONDITION_GET_FRAME_WIDTH(int displaycondition_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_GET_FULLENVLOPE(int displaycondition_ptr, ref double minx, ref double miny, ref double maxx, ref double maxy);
        [DllImport("KMGisLib")]
        public static extern bool KWG_DISPLAYCONDITION_GET_LABEL_CLOSEDODGE(int displaycondition_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_DISPLAYCONDITION_GET_LABEL_DODGE(int displaycondition_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_DISPLAYCONDITION_GET_LABEL_OPENDODGE(int displaycondition_ptr);
        [DllImport("KMGisLib")]
        public static extern POINTD KWG_DISPLAYCONDITION_GET_MAP_POINT(int displaycondition_ptr, POINTD pt, int projection_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_DISPLAYCONDITION_GET_PROJECTION(int displaycondition_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_GET_SCALE(int displaycondition_ptr, ref double scale);
        [DllImport("KMGisLib")]
        public static extern int KWG_DISPLAYCONDITION_GET_SELECTION_COLOR(int displaycondition_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_DISPLAYCONDITION_GET_SELECTION_LINE_WIDTH(int displaycondition_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_DISPLAYCONDITION_GET_SMALLEST_HEIGHT_PIXEL(int displaycondition_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_DISPLAYCONDITION_GET_SMALLEST_WIDTH_PIXEL(int displaycondition_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_DISPLAYCONDITION_MAP_TO_PIXEL(int displaycondition_ptr, double x1, double y1, ref int x2, ref int y2);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_MATH_SCALE(int displaycondition_ptr, double minx, double miny, double max, double maxy, ref double scale);
        [DllImport("KMGisLib")]
        public static extern bool KWG_DISPLAYCONDITION_PIXEL_TO_MAP(int displaycondition_ptr, int x1, int y1, ref double x2, ref double y2);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_SET_ANGLE(int displaycondition_ptr, int angle);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_SET_CENTER(int displaycondition_ptr, double x, double y);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_SET_COORDINATESYSTEM(int displaycondition_ptr, int coordinatesystem_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_SET_ENVLOPE(int displaycondition_ptr, double minx, double miny, double maxx, double maxy);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_SET_FRAME(int displaycondition_ptr, int width, int height);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_SET_PROJECTION(int displaycondition_ptr, int projection_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_SET_SCALE(int displaycondition_ptr, double scale);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_SET_SELECTION_COLOR(int displaycondition_ptr, int color);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_SET_SELECTION_LINE_WIDTH(int displaycondition_ptr, int width);
        [DllImport("KMGisLib")]
        public static extern void KWG_DISPLAYCONDITION_SET_SMALLEST_PIXEL(int displaycondition_ptr, int width, int height);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_ADD_FEATURE(int featurelayer_ptr, int row_ptr, int geo_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_COMPRESS(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_DATA_INDEX_ENGINE(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_DELETE_FEATURE(int featurelayer_ptr, int nfeature);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_EDIT_BEGIN(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_EDIT_SAVE(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_EDIT_STOP(int featurelayer_ptr, bool save);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_DATAROW(int featurelayer_ptr, int nrow);
        [DllImport("KMGisLib")]
        public static extern void KWG_FEATURELAYER_GET_ENVLOPE(int featurelayer_ptr, ref double minx, ref double miny, ref double maxx, ref double maxy);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_FIELD_COUNT(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_FIELD_DECIMAL(int featurelayer_ptr, int nfield);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_GET_FIELD_NAME(int featurelayer_ptr, int nfield, StringBuilder field_name);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_FIELD_TYPE(int featurelayer_ptr, int nfield);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_GEOMETRY(int featurelayer_ptr, int ngeometry);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_GEOMETRY_COUNT(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_GEOMETRYTYPE(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_GET_GROUPIDLIST(int featurelayer_ptr, int nField, ref int arr_nId, ref int nIdCount);
        [DllImport("KMGisLib")]
        public static extern void KWG_FEATURELAYER_GET_LABEL_MAXSCALE(int featurelayer_ptr, ref double scale);
        [DllImport("KMGisLib")]
        public static extern void KWG_FEATURELAYER_GET_LABEL_MINSCALE(int featurelayer_ptr, ref double scale);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_LABELCACHE(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_LABELINDEX(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_PROJECTION(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_RENDER(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_GET_SELECTABLE(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_SELECTION_COUNT(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_SPATIAL_INDEX_ENGINE(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_GET_TYPE(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_IS_EDIT(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_FEATURELAYER_NEW_DATAROW(int featurelayer_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_SEARCHBYPOINT(int featurelayer_ptr, POINTD pt, double buffer, StringBuilder psql, ref int ids, ref int count);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_SEARCHBYPOLYGON(int featurelayer_ptr, ref POINTD pts, int ptscount, StringBuilder psql, ref int ids, ref int count);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_SEARCHBYSQL(int featurelayer_ptr, StringBuilder psql, ref int ids, ref int count);
        [DllImport("KMGisLib")]
        public static extern void KWG_FEATURELAYER_SET_DATA_INDEX_ENGINE(int featurelayer_ptr, int p_drv);
        [DllImport("KMGisLib")]
        public static extern void KWG_FEATURELAYER_SET_LABEL_MAXSCALE(int featurelayer_ptr, double scale);
        [DllImport("KMGisLib")]
        public static extern void KWG_FEATURELAYER_SET_LABEL_MINSCALE(int featurelayer_ptr, double scale);
        [DllImport("KMGisLib")]
        public static extern void KWG_FEATURELAYER_SET_LABELINDEX(int featurelayer_ptr, int index);
        [DllImport("KMGisLib")]
        public static extern void KWG_FEATURELAYER_SET_PROJECTION(int featurelayer_ptr, int projection_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_FEATURELAYER_SET_RENDER(int featurelayer_ptr, int render_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_FEATURELAYER_SET_SELECTABLE(int featurelayer_ptr, bool selectable);
        [DllImport("KMGisLib")]
        public static extern void KWG_FEATURELAYER_SET_SELECTION(int featurelayer_ptr, ref int list_id, int count);
        [DllImport("KMGisLib")]
        public static extern void KWG_FEATURELAYER_SET_SPATIAL_INDEX_ENGINE(int featurelayer_ptr, int p_spatial_index_engine);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_UPDATE_DATAROW(int featurelayer_ptr, int nrow, int row_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_FEATURELAYER_UPDATE_GEOMETRY(int featurelayer_ptr, int ngeometry, int geometry_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_GEOMETRY_CLEAR(int geometry_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_GEOMETRY_CREATE(int geometry_type, int segment_count, ref int segment_pointcount);
        [DllImport("KMGisLib")]
        public static extern void KWG_GEOMETRY_DELETE(int geometry_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_GEOMETRY_GET_MAXX(int geometry_ptr, ref double maxx);
        [DllImport("KMGisLib")]
        public static extern void KWG_GEOMETRY_GET_MAXY(int geometry_ptr, ref double maxy);
        [DllImport("KMGisLib")]
        public static extern void KWG_GEOMETRY_GET_MINX(int geometry_ptr, ref double minx);
        [DllImport("KMGisLib")]
        public static extern void KWG_GEOMETRY_GET_MINY(int geometry_ptr, ref double miny);
        [DllImport("KMGisLib")]
        public static extern int KWG_GEOMETRY_GET_POINT_COUNT(int geometry_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_GEOMETRY_GET_POINTX(int geometry_ptr, int npoint, ref double x);
        [DllImport("KMGisLib")]
        public static extern void KWG_GEOMETRY_GET_POINTY(int geometry_ptr, int npoint, ref double y);
        [DllImport("KMGisLib")]
        public static extern int KWG_GEOMETRY_GET_SEGMENT_COUNT(int geometry_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_GEOMETRY_GET_SEGMENT_POINT_COUNT(int geometry_ptr, int nsegment);
        [DllImport("KMGisLib")]
        public static extern void KWG_GEOMETRY_GET_SEGMENT_POINTX(int geometry_ptr, int nsegment, int npoint, ref double x);
        [DllImport("KMGisLib")]
        public static extern void KWG_GEOMETRY_GET_SEGMENT_POINTY(int geometry_ptr, int nsegment, int npoint, ref double y);
        [DllImport("KMGisLib")]
        public static extern int KWG_GEOMETRY_GET_TYPE(int geometry_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_GEOMETRY_MATH_BOUND(int geometry_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_GEOMETRY_SET_POINTX(int geometry_ptr, int npoint, double x);
        [DllImport("KMGisLib")]
        public static extern bool KWG_GEOMETRY_SET_POINTY(int geometry_ptr, int npoint, double y);
        [DllImport("KMGisLib")]
        public static extern bool KWG_GEOMETRY_SET_SEGMENT_POINTX(int geometry_ptr, int nsegment, int npoint, double x);
        [DllImport("KMGisLib")]
        public static extern bool KWG_GEOMETRY_SET_SEGMENT_POINTY(int geometry_ptr, int nsegment, int npoint, double y);
        [DllImport("KMGisLib")]
        public static extern void KWG_GROUPRENDER_ADD(int grouprender_ptr, StringBuilder value, int style_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_GROUPRENDER_CREATE(int nfiled);
        [DllImport("KMGisLib")]
        public static extern void KWG_GROUPRENDER_DELETE(int grouprender_ptr, int nstyle);
        [DllImport("KMGisLib")]
        public static extern bool KWG_GROUPRENDER_DELETE_STYLE(int grouprender_ptr, StringBuilder value);
        [DllImport("KMGisLib")]
        public static extern int KWG_GROUPRENDER_GET_COUNT(int grouprender_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_GROUPRENDER_GET_FIELD(int grouprender_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_GROUPRENDER_GET_INDEX(int grouprender_ptr, StringBuilder value);
        [DllImport("KMGisLib")]
        public static extern int KWG_GROUPRENDER_GET_STYLE(int grouprender_ptr, int nstyle);
        [DllImport("KMGisLib")]
        public static extern int KWG_GROUPRENDER_GET_STYLE_BASE(int grouprender_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_GROUPRENDER_GET_VALUE(int grouprender_ptr, int nstyle, StringBuilder value);
        [DllImport("KMGisLib")]
        public static extern int KWG_KDI_OPEN(StringBuilder file_name, int drv_type, bool none_create);
        [DllImport("KMGisLib")]
        public static extern int KWG_KRASTER_OPEN(StringBuilder kraster_name);
        [DllImport("KMGisLib")]
        public static extern bool KWG_LABEL_GET_ALLOWSAME(int label_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_LABEL_GET_ARRANGEMENTTYPE(int label_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_LABEL_GET_FONTSIZE(int label_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_LABEL_GET_LEVEL(int label_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_LABEL_SET_ALLOWSAME(int label_ptr, bool allowsame);
        [DllImport("KMGisLib")]
        public static extern void KWG_LABEL_SET_ARRANGEMENTTYPE(int label_ptr, int type);
        [DllImport("KMGisLib")]
        public static extern void KWG_LABEL_SET_FONTSIZE(int label_ptr, int fontsize);
        [DllImport("KMGisLib")]
        public static extern void KWG_LABEL_SET_LEVEL(int label_ptr, int level);
        [DllImport("KMGisLib")]
        public static extern void KWG_LAYER_DELETE(int layer_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_LAYER_GET_CAPTION(int layer_ptr, StringBuilder layer_caption);
        [DllImport("KMGisLib")]
        public static extern int KWG_LAYER_GET_MAP(int layer_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_LAYER_GET_MAXSCALE(int layer_ptr, ref double scale);
        [DllImport("KMGisLib")]
        public static extern void KWG_LAYER_GET_MINSCALE(int layer_ptr, ref double scale);
        [DllImport("KMGisLib")]
        public static extern void KWG_LAYER_GET_NAME(int layer_ptr, StringBuilder layer_name);
        [DllImport("KMGisLib")]
        public static extern LayerType KWG_LAYER_GET_TYPE(int layer_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_LAYER_GET_VISIBLE(int layer_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_LAYER_SET_CAPTION(int layer_ptr, StringBuilder layer_caption);
        [DllImport("KMGisLib")]
        public static extern void KWG_LAYER_SET_MAXSCALE(int layer_ptr, double scale);
        [DllImport("KMGisLib")]
        public static extern void KWG_LAYER_SET_MINSCALE(int layer_ptr, double scale);
        [DllImport("KMGisLib")]
        public static extern void KWG_LAYER_SET_VISIBLE(int layer_ptr, bool visible);
        [DllImport("KMGisLib")]
        public static extern void KWG_LINESTYLE_ADD_SYMBOL(int linestyle_ptr, int symbol_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_LINESTYLE_CLEAR_SYMBOL(int linestyle_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_LINESTYLE_CREATE();
        [DllImport("KMGisLib")]
        public static extern void KWG_LINESTYLE_DELETE(int linestyle_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_LINESTYLE_FROMSID(int sid);
        [DllImport("KMGisLib")]
        public static extern void KWG_LINESTYLE_GET_SCALE(int linestyle_ptr, ref double scale);
        [DllImport("KMGisLib")]
        public static extern int KWG_LINESTYLE_GET_SYMBOL(int linestyle_ptr, int nsymbol);
        [DllImport("KMGisLib")]
        public static extern int KWG_LINESTYLE_GET_SYMBOL_COUNT(int linestyle_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_LINESTYLE_SET_SCALE(int linestyle_ptr, double scale);
        [DllImport("KMGisLib")]
        public static extern bool KWG_LINESTYLE_SET_SYMBOL(int linestyle_ptr, int nsymbol, int symbol_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_LINESYMBOL_GET_COLOR(int linesymbol_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_LINESYMBOL_GET_WIDTH(int linesymbol_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_LINESYMBOL_SET_COLOR(int linesymbol_ptr, int color);
        [DllImport("KMGisLib")]
        public static extern void KWG_LINESYMBOL_SET_WIDTH(int linesymbol_ptr, int width);
        [DllImport("KMGisLib")]
        public static extern int KWG_MAP_ADD_LAYER(int map_ptr, int layer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_MAP_CREATE(StringBuilder map_name);
        [DllImport("KMGisLib")]
        public static extern void KWG_MAP_DELETE(int map_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_MAP_FROMKMD(int map_ptr, StringBuilder kmd_file);
        [DllImport("KMGisLib")]
        public static extern int KWG_MAP_GET_DISPLAYCONDITION(int map_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_MAP_GET_LAYER(int map_ptr, int layer_index);
        [DllImport("KMGisLib")]
        public static extern int KWG_MAP_GET_LAYERCOUNT(int map_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_MAP_GET_NAME(int map_ptr, StringBuilder map_name);
        [DllImport("KMGisLib")]
        public static extern bool KWG_MAP_MOVE_LAYER(int map_ptr, int layer_oldindex, int layer_newindex);
        [DllImport("KMGisLib")]
        public static extern bool KWG_MAP_REMOVE_LAYER(int map_ptr, int layer_index);
        [DllImport("KMGisLib")]
        public static extern int KWG_MAP_SAVEKMD(int map_ptr, StringBuilder kmd_file);
        [DllImport("KMGisLib")]
        public static extern int KWG_MEMLAYER_CREATEROW(int memlayer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_MEMORYLAYER_CREATE(StringBuilder name, StringBuilder caption, int geometry_type, int maxrecs, StringBuilder fld_names, StringBuilder fld_types, ref int fld_lens, ref int fld_decs, int fld_count);
        [DllImport("KMGisLib")]
        public static extern void KWG_POINTSTYLE_ADD_SYMBOL(int pointstyle_ptr, int symbol_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_POINTSTYLE_CLEAR_SYMBOL(int pointstyle_ptr, int nsymbol);
        [DllImport("KMGisLib")]
        public static extern int KWG_POINTSTYLE_CREATE();
        [DllImport("KMGisLib")]
        public static extern void KWG_POINTSTYLE_DELETE(int pointstyle_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_POINTSTYLE_GET_SYMBOL(int pointstyle_ptr, int nsymbol);
        [DllImport("KMGisLib")]
        public static extern int KWG_POINTSTYLE_GET_SYMBOL_COUNT(int pointstyle_ptr);
        [DllImport("KMGisLib")]
        public static extern bool KWG_POINTSTYLE_SET_SYMBOL(int pointstyle_ptr, int nsymbol, int symbol_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_POINTSYMBOL_GET_TYPE(int pointsymbol_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_POLYGONSTYLE_GET_FILLCOLOR(int style_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_POLYGONSTYLE_GET_LINECOLOR(int style_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_POLYGONSTYLE_GET_LINEWIDTH(int style_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_POLYGONSTYLE_SET_FILLCOLOR(int style_ptr, int fillcolor);
        [DllImport("KMGisLib")]
        public static extern void KWG_POLYGONSTYLE_SET_LINECOLOR(int style_ptr, int linecolor);
        [DllImport("KMGisLib")]
        public static extern void KWG_POLYGONSTYLE_SET_LINEWIDTH(int style_ptr, int linewidth);
        [DllImport("KMGisLib")]
        public static extern void KWG_RENDER_DELETE(int render_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_RENDER_GET_TYPE(int render_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_SHAPELAYER_CREATEROW(int shplayer_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_SIMPLERENDER_CREATE();
        [DllImport("KMGisLib")]
        public static extern int KWG_SIMPLERENDER_GET_STYLE(int simplerender_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_SIMPLERENDER_SET_STYLE(int simplerender_ptr, int style_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_SPATIAL_CREATE(int featurelayer_ptr, StringBuilder sie_name);
        [DllImport("KMGisLib")]
        public static extern int KWG_SPATIAL_OPEN(int featurelayer_ptr, StringBuilder sie_name);
        [DllImport("KMGisLib")]
        public static extern int KWG_STYLE_CREATE();
        [DllImport("KMGisLib")]
        public static extern void KWG_STYLE_DELETE(int style_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_STYLE_GET_LINESTYLE(int style_ptr);
        [DllImport("KMGisLib")]
        public static extern int KWG_STYLE_GET_POINTSTYLE(int style_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_STYLE_SET_LINESTYLE(int style_ptr, int linestyle_ptr);
        [DllImport("KMGisLib")]
        public static extern void KWG_STYLE_SET_POINTSTYLE(int style_ptr, int pointstyle_ptr);
    }
}

